package lesson2.com.animals;


import lesson2.com.general.Flyer;
import lesson2.com.general.InterfaceA;
import lesson2.com.general.InterfaceB;


public class FlyingSquirrel extends Animal implements Flyer, InterfaceA, InterfaceB{

    @Override
    public void walk() {
        System.out.println("I can walk, I prefer to glide from tree to tree");
    }

    @Override
    public void takeOff() {
        System.out.println("Grab that branch, and LAUCH away");
    }

    @Override
    public void land() {
        System.out.println("Aim carefully, glide into the next tree");
    }

    @Override
    public void fly() {
        System.out.println("I'm more of a glider than a flyer");
    }

    @Override
    public void someMethod() {
        
    }

    @Override
    public void someMethod(int x) {
        System.out.println("In someMethod of FlyingSquirred");
        // x need to be something other than zero to continue
        assert x!=0 : "We do NOT like zero!";
        System.out.println("Out someMethod of FlyingSquirrel");
    }

}
